package sustOJ;

import java.util.Scanner;

import static sustOJ.BeautifulArray.因子;

/**
 * @author : niu niu
 * @version : 1.0.0
 * @date : 2022/10/12 23:54
 */
public class test {
    public static void main(String[] args) {
        int sum = 0;
        int xorRet = 0;
        int arrSize=0;
        Scanner scanner = new Scanner(System.in);
        arrSize = scanner.nextInt();
        int arr[]=new int[arrSize];

        for (int i = 0; i < arrSize; i++) {
            arr[i] = scanner.nextInt();
            sum+=arr[i];
        }
        System.out.println("sum  = "+sum   );
        for (int i = 0; i < arrSize; i++) {
            xorRet^=arr[i];
        }
        System.out.println("xor = "+ xorRet);
        因子(2*xorRet);
    }
}
